package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品红包活动信息表
 * </p>
 *
 * @author leehao
 * @since 2019-06-04
 */
public class ActivityRedPacket implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商家id
     */
    private Integer bid;

    /**
     * 商品编码
     */
    private String proCode;

    /**
     * 红包总金额
     */
    private BigDecimal totalMoney;

    /**
     * 每个红包金额
     */
    private BigDecimal perMoney;

    /**
     * 红包的类型，见ActivityPayEnums
     */
    private Integer payType;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 1已审核 0未审核
     */
    private Integer status;

    @Version
    private Integer version;

    /**
     * 商家名称
     */
    @TableField(exist = false)
    private String businessName;

    /**
     * 类型
     */
    @TableField(exist = false)
    private String typeName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getPerMoney() {
        return perMoney;
    }

    public void setPerMoney(BigDecimal perMoney) {
        this.perMoney = perMoney;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
